package com.android.View;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

/**
 * 
 * 안드로이드 기반 개인키 공개키 생성
 * 
 * **/
public class InputUserInfoActivity extends Activity {
	/** Called when the activity is first created. */

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.signup);

		Button btnEn = (Button) findViewById(R.id.btnEn);
		final EditText password = (EditText) findViewById(R.id.encryption);
		final EditText username = (EditText) findViewById(R.id.name);
		final EditText country = (EditText) findViewById(R.id.country);
		final EditText organization = (EditText) findViewById(R.id.organization);
		final EditText location = (EditText) findViewById(R.id.location);
		final EditText email = (EditText) findViewById(R.id.email);

		btnEn.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				/** User가 입력한 개인정보와 비밀번호 얻어오기 **/
				Intent intent = new Intent(InputUserInfoActivity.this,
						RequisitionFormActivity.class);
				intent.putExtra("uname", username.getText().toString());
				intent.putExtra("ucountry", country.getText().toString());
				intent.putExtra("uorganization", organization.getText()
						.toString());
				intent.putExtra("ulocation", location.getText().toString());
				intent.putExtra("uemail", email.getText().toString());
				intent.putExtra("upassword", password.getText().toString());
				startActivity(intent);
			}
		});

	}
}